package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DFlavorsMapper;
import com.ruoyi.system.domain.DFlavors;
import com.ruoyi.system.service.IDFlavorsService;

/**
 * 菜品口味Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
@Service
public class DFlavorsServiceImpl implements IDFlavorsService 
{
    @Autowired
    private DFlavorsMapper dFlavorsMapper;

    /**
     * 查询菜品口味
     * 
     * @param id 菜品口味主键
     * @return 菜品口味
     */
    @Override
    public DFlavors selectDFlavorsById(Long id)
    {
        return dFlavorsMapper.selectDFlavorsById(id);
    }

    /**
     * 查询菜品口味列表
     * 
     * @param dFlavors 菜品口味
     * @return 菜品口味
     */
    @Override
    public List<DFlavors> selectDFlavorsList(DFlavors dFlavors)
    {
        return dFlavorsMapper.selectDFlavorsList(dFlavors);
    }

    /**
     * 新增菜品口味
     * 
     * @param dFlavors 菜品口味
     * @return 结果
     */
    @Override
    public int insertDFlavors(DFlavors dFlavors)
    {
        return dFlavorsMapper.insertDFlavors(dFlavors);
    }

    /**
     * 修改菜品口味
     * 
     * @param dFlavors 菜品口味
     * @return 结果
     */
    @Override
    public int updateDFlavors(DFlavors dFlavors)
    {
        return dFlavorsMapper.updateDFlavors(dFlavors);
    }

    /**
     * 批量删除菜品口味
     * 
     * @param ids 需要删除的菜品口味主键
     * @return 结果
     */
    @Override
    public int deleteDFlavorsByIds(Long[] ids)
    {
        return dFlavorsMapper.deleteDFlavorsByIds(ids);
    }

    /**
     * 删除菜品口味信息
     * 
     * @param id 菜品口味主键
     * @return 结果
     */
    @Override
    public int deleteDFlavorsById(Long id)
    {
        return dFlavorsMapper.deleteDFlavorsById(id);
    }
}
